package com.schoolcloud.share.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 用户互动行为记录
 * @TableName user_actions
 */
@TableName(value ="user_actions")
@Data
public class UserActions implements Serializable {
    /**
     * 行为ID
     */
    @TableId(value = "action_id", type = IdType.AUTO)
    private Integer action_id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer user_id;

    /**
     * 行为类型
     */
    @TableField(value = "action_type")
    private Object action_type;

    /**
     * 目标类型
     */
    @TableField(value = "target_type")
    private Object target_type;

    /**
     * 目标ID
     */
    @TableField(value = "target_id")
    private Integer target_id;

    /**
     * 附加数据
     */
    @TableField(value = "metadata")
    private Object metadata;

    /**
     * 行为时间
     */
    @TableField(value = "created_at")
    private LocalDateTime created_at;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}